// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Schema_PROD_PLAN_ORDER_ITEM
// * CreateDate    : 2012/4/21 16:52:07
// * Creater       : CodeSmith
// * LastChangeDate: 2012/4/21 16:52:07
// * LastChanger   : 2012/4/21 16:52:07
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;

namespace ESOL.Common.Schema
{
    [Serializable]
    public partial class ProdPlanOrderItemTable : TableInfo
    {
        public const string C_TableName = "PROD_PLAN_ORDER_ITEM";

        public const string C_PLAN_ORDER_ITEM_ID = "PLAN_ORDER_ITEM_ID";
        public const string C_PLAN_ORDER_ID = "PLAN_ORDER_ID";
        public const string C_BOM_ID = "BOM_ID";
        public const string C_RELATED_PLAN_ORDER_ITEM_ID = "RELATED_PLAN_ORDER_ITEM_ID";
        public const string C_PRODUCT_ID = "PRODUCT_ID";
        public const string C_BLUEPRINT_ID = "BLUEPRINT_ID";
        public const string C_TECHNIC_PERSON = "TECHNIC_PERSON";
        public const string C_ORDER_ITEM_CODE = "ORDER_ITEM_CODE";
        public const string C_DELIVERY_DATE = "DELIVERY_DATE";
        public const string C_QTY = "QTY";
        public const string C_STORAGE_QTY = "STORAGE_QTY";
        public const string C_PRODUCTED_QTY = "PRODUCTED_QTY";
        public const string C_STATUS = "STATUS";
        public const string C_REMARK = "REMARK";
        public const string C_PRODUCT_TYPE = "PRODUCT_TYPE";
        public const string C_WORKORDER_CREATE_DATE = "WORKORDER_CREATE_DATE";
        public const string C_ORDER_TYPE = "ORDER_TYPE";
        public const string C_IS_ASSEMBLY = "IS_ASSEMBLY";
        public const string C_IS_PRINTED = "IS_PRINTED";
        public const string C_IS_MARK = "IS_MARK";

        public ProdPlanOrderItemTable()
        {
            _tableName = "PROD_PLAN_ORDER_ITEM";
        }

        protected static ProdPlanOrderItemTable _current;
        public static ProdPlanOrderItemTable Current
        {
            get
            {
                if (_current == null)
                {
                    Initial();
                }
                return _current;
            }
        }

        private static void Initial()
        {
            _current = new ProdPlanOrderItemTable();

            _current.Add(C_PLAN_ORDER_ITEM_ID, new ColumnInfo(C_PLAN_ORDER_ITEM_ID, "PlanOrderItemId", true, typeof(string)));
            _current.Add(C_PLAN_ORDER_ID, new ColumnInfo(C_PLAN_ORDER_ID, "PlanOrderId", false, typeof(string)));
            _current.Add(C_BOM_ID, new ColumnInfo(C_BOM_ID, "BomId", false, typeof(string)));
            _current.Add(C_RELATED_PLAN_ORDER_ITEM_ID, new ColumnInfo(C_RELATED_PLAN_ORDER_ITEM_ID, "RelatedPlanOrderItemId", false, typeof(string)));
            _current.Add(C_PRODUCT_ID, new ColumnInfo(C_PRODUCT_ID, "ProductId", false, typeof(string)));
            _current.Add(C_BLUEPRINT_ID, new ColumnInfo(C_BLUEPRINT_ID, "BlueprintId", false, typeof(string)));
            _current.Add(C_TECHNIC_PERSON, new ColumnInfo(C_TECHNIC_PERSON, "TechnicPerson", false, typeof(string)));
            _current.Add(C_ORDER_ITEM_CODE, new ColumnInfo(C_ORDER_ITEM_CODE, "OrderItemCode", false, typeof(string)));
            _current.Add(C_DELIVERY_DATE, new ColumnInfo(C_DELIVERY_DATE, "DeliveryDate", false, typeof(DateTime)));
            _current.Add(C_QTY, new ColumnInfo(C_QTY, "Qty", false, typeof(decimal)));
            _current.Add(C_STORAGE_QTY, new ColumnInfo(C_STORAGE_QTY, "StorageQty", false, typeof(decimal)));
            _current.Add(C_PRODUCTED_QTY, new ColumnInfo(C_PRODUCTED_QTY, "ProductedQty", false, typeof(decimal)));
            _current.Add(C_STATUS, new ColumnInfo(C_STATUS, "Status", false, typeof(string)));
            _current.Add(C_REMARK, new ColumnInfo(C_REMARK, "Remark", false, typeof(string)));
            _current.Add(C_PRODUCT_TYPE, new ColumnInfo(C_PRODUCT_TYPE, "ProductType", false, typeof(string)));
            _current.Add(C_WORKORDER_CREATE_DATE, new ColumnInfo(C_WORKORDER_CREATE_DATE, "WorkorderCreateDate", false, typeof(DateTime)));
            _current.Add(C_ORDER_TYPE, new ColumnInfo(C_ORDER_TYPE, "OrderType", false, typeof(string)));
            _current.Add(C_IS_ASSEMBLY, new ColumnInfo(C_IS_ASSEMBLY, "IsAssembly", false, typeof(int)));
            _current.Add(C_IS_PRINTED, new ColumnInfo(C_IS_PRINTED, "IsPrinted", false, typeof(int)));
            _current.Add(C_IS_MARK, new ColumnInfo(C_IS_MARK, "IsMark", false, typeof(int)));

        }

        public ColumnInfo PLAN_ORDER_ITEM_ID
        {
            get { return this[C_PLAN_ORDER_ITEM_ID]; }
        }

        public ColumnInfo PLAN_ORDER_ID
        {
            get { return this[C_PLAN_ORDER_ID]; }
        }

        public ColumnInfo BOM_ID
        {
            get { return this[C_BOM_ID]; }
        }

        public ColumnInfo RELATED_PLAN_ORDER_ITEM_ID
        {
            get { return this[C_RELATED_PLAN_ORDER_ITEM_ID]; }
        }

        public ColumnInfo PRODUCT_ID
        {
            get { return this[C_PRODUCT_ID]; }
        }

        public ColumnInfo BLUEPRINT_ID
        {
            get { return this[C_BLUEPRINT_ID]; }
        }

        public ColumnInfo TECHNIC_PERSON
        {
            get { return this[C_TECHNIC_PERSON]; }
        }

        public ColumnInfo ORDER_ITEM_CODE
        {
            get { return this[C_ORDER_ITEM_CODE]; }
        }

        public ColumnInfo DELIVERY_DATE
        {
            get { return this[C_DELIVERY_DATE]; }
        }

        public ColumnInfo QTY
        {
            get { return this[C_QTY]; }
        }

        public ColumnInfo STORAGE_QTY
        {
            get { return this[C_STORAGE_QTY]; }
        }

        public ColumnInfo PRODUCTED_QTY
        {
            get { return this[C_PRODUCTED_QTY]; }
        }

        public ColumnInfo STATUS
        {
            get { return this[C_STATUS]; }
        }

        public ColumnInfo REMARK
        {
            get { return this[C_REMARK]; }
        }

        public ColumnInfo PRODUCT_TYPE
        {
            get { return this[C_PRODUCT_TYPE]; }
        }

        public ColumnInfo WORKORDER_CREATE_DATE
        {
            get { return this[C_WORKORDER_CREATE_DATE]; }
        }

        public ColumnInfo ORDER_TYPE
        {
            get { return this[C_ORDER_TYPE]; }
        }

        public ColumnInfo IS_ASSEMBLY
        {
            get { return this[C_IS_ASSEMBLY]; }
        }

        public ColumnInfo IS_PRINTED
        {
            get { return this[C_IS_PRINTED]; }
        }

        public ColumnInfo IS_MARK
        {
            get { return this[C_IS_MARK]; }
        }



    }
}

